/*
 * defines.h
 *
 *  Created on: Apr 12, 2012
 *      Author: brent.reamer
 */

#ifndef DEFINES_H_
#define DEFINES_H_

/*
 * Defines to keep Main.c a bit cleaner;
 *
 * these defines are  usable by this  project only and
 * for the most part are hard coded for the components
 * for the project
 */

/* Misc Functions and Defines */
	#define _reset() wdt_enable(WDTO_15MS); while(1) { nop(); }

	#define _sEmptyUartBuff() while(uart_getc() != UART_NO_DATA) { nop(); }


/* Analog Switch */
	#define SetupASwitch() SETBIT(DDRD,PD7); CLEARBIT(PORTD,PD7)
	#define SetASwitch_On() SETBIT(PORTD,PD7);
	#define SetASwitch_Off() CLEARBIT(PORTD,PD7);
	#define GetASwitch() CHECKBIT(PORTD,PD7)

#endif /* DEFINES_H_ */
